import request from '@/utils/request'

// 查询各项目统计数据
export function allItemTotal(query) {
    return request({
        url: '/business/index/allItemTotal',
        method: 'get',
        params: query
    })
}


// 获取折线图数据
export function lineChart(query) {
    return request({
        url: '/business/index/lineChart',
        method: 'get',
        params: query
    })
}

// 获取饼状图数据
export function pieChart(query) {
    return request({
        url: '/business/index/pieChart',
        method: 'get',
        params: query
    })
}

// 获取柱状图数据
export function barChart(query) {
    return request({ 
        url: '/business/index/barChart',
        method: 'get',
        params: query
    })
}

